<template>
	<div>
		<el-dialog title="查看详情" width="800px" @open="open" class="icon-dialog" :visible.sync="show" :before-close="closeForm" append-to-body>
			<table class="table table-bordered" align="center" width="100%" style="word-break:break-all; margin-bottom:50px;  font-size:13px;">
				<tbody>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_id')}}：</td>
						<td>
							{{form.id}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_message_id')}}：</td>
						<td>
							{{form.message_id}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_name')}}：</td>
						<td>
							{{form.name}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.I118_type')}}：</td>
						<td>
							<span v-if="form.type == '1'">文本</span>
							<span v-if="form.type == '2'">富文本</span>
						</td>
				</tr>
				<tr>
						<td class="title" width="100">{{$t('field.I118_use_way')}}：</td>
						<td>
							<span v-if="form.use_way == '1'">admin</span>
							<span v-if="form.use_way == '2'">app</span>
							<span v-if="form.use_way == '3'">both</span>
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_controller')}}：</td>
						<td>
							{{form.controller}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_original_id')}}：</td>
						<td>
							{{form.original_id}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_zh')}}：</td>
						<td>
							{{form.language_zh}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_en')}}：</td>
						<td>
							{{form.language_en}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_ja')}}：</td>
						<td>
							{{form.language_ja}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_01')}}：</td>
						<td>
							{{form.language_01}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_02')}}：</td>
						<td>
							{{form.language_02}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_03')}}：</td>
						<td>
							{{form.language_03}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_04')}}：</td>
						<td>
							{{form.language_04}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_05')}}：</td>
						<td>
							{{form.language_05}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.I118_language_06')}}：</td>
						<td>
							{{form.language_06}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.I118_create_time')}}：</td>
						<td>
							{{parseTime(form.create_time)}}
						</td>
				</tr>
				</tbody>
			</table>
		</el-dialog>
	</div>
</template>
<script>
import { detail  } from '@/api/admin/i118'
export default {
	name:'i118detail',
	props: {
		show: {
			type: Boolean,
			default: true
		},
		size: {
			type: String,
			default: 'mini'
		},
		info: {
			type: Object,
		},
	},
	data() {
		return {
			form:{
			},
		}
	},
	watch:{
		show(val){
			if(val){
			}
		}
	},
	methods: {
		open(){
			detail(this.info).then(res => {
				this.form = res.data
			})
		},
		closeForm(){
			this.$emit('update:show', false)
		}
	}
}
</script>
<style  lang="scss">
@import '@/assets/scss/common.scss'
</style>
